<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    	<meta charset="UTF-8">
    <meta id="viewport" name="viewport" content="initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />

    <title>成考首页</title>
    <!-- build:css css/major.min.css -->
    <link rel="stylesheet" type="text/css" href="/Template/mobile/new/Static/css/major.css">
    <!-- endbuild -->
</head>
<body>
    <div class="header">
    <a href="<?php echo U('Mobile/Index/index');?>" class="home">
        <img src="/Template/mobile/new/Static/images/home.png" alt="">
    </a>
    <h1>
    	<?php if(CONTROLLER_NAME == 'Adult' ): ?>成人高考
		    <?php else: ?> value2<?php endif; ?>	
    </h1>
    <a href="<?php echo U('Mobile/Index/map');?>" class="list-icon">
        <img src="/Template/mobile/new/Static/images/icon-1.png" alt="">
    </a>
</div>

    <!--顶部分类导航部分-->
<div class="nav">
    <ul>
        <li <?php if(CONTROLLER_NAME == 'Index'): ?>class="active"<?php endif; ?>><a href="<?php echo U('Index/index');?>">首页</a></li>
        <li	<?php if(CONTROLLER_NAME == 'Adult' && (ACTION_NAME == 'ckindex' || ACTION_NAME == 'question') ): ?>class="active"<?php endif; ?>><a href="<?php echo U('Adult/ckindex');?>">成考</a></li>
        <li	<?php if(CONTROLLER_NAME == ''): ?>class="active"<?php endif; ?>><a href="">函授</a></li>
        <li	<?php if(CONTROLLER_NAME == ''): ?>class="active"<?php endif; ?>><a href="">夜大</a></li>
        <li <?php if(CONTROLLER_NAME == 'Adult' && ACTION_NAME == 'school'): ?>class="active"<?php endif; ?>><a href="<?php echo U('Adult/school');?>">院校</a></li>
        <li <?php if(CONTROLLER_NAME == 'Adult' && ACTION_NAME == 'major'): ?>class="active"<?php endif; ?>><a href="<?php echo U('Adult/major');?>">专业</a></li>
    </ul>
</div>

    <div class="filter">
        <div><span>请选择院校所在地区</span></div>
    </div>
    <div class="filter-con">
        <ul>
        	<?php if(is_array($provinceList)): $i = 0; $__LIST__ = $provinceList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="#city-<?php echo ($key+1); ?>" type="city"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
    <div class="nav-content">
        <div class="nav-content-1">
        	<?php if(is_array($majorList)): $i = 0; $__LIST__ = array_slice($majorList,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="#major-<?php echo ($key+1); ?>">
	                <img src="/Template/mobile/new/Static/images/icon-1<?php echo ($key+1); ?>.png" alt="">
	                <p><?php echo ($vo["name"]); ?></p>
	            </a><?php endforeach; endif; else: echo "" ;endif; ?>
	        <a href="#major-8">
                <img src="/Template/mobile/new/Static/images/icon-42.png" alt="">
                <p>工科类</p>
            </a>
        </div>
    </div>
    <div class="list">
    	<?php if(is_array($majorList)): $i = 0; $__LIST__ = $majorList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="list-container" id="major-<?php echo ($key+1); ?>">
	            <div class="list-title">
	                <h2 class="list-title-<?php echo ($key+1); ?>"><a href='<?php echo U("newlist",array("mid"=>$vo["id"],'type'=>2));?>'><?php echo ($vo["name"]); ?></a></h2>
	            </div>
	            <div class="list-con">
	                <ul>
	                	<?php if(is_array($vo["article"])): $i = 0; $__LIST__ = $vo["article"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?><li <?php if($vv["hot"] == 1): ?>class="hot"<?php endif; ?>><a href='<?php echo U("article",array("id"=>$vv["id"]));?>'><?php echo ($vv["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
	                </ul>
	            </div>
	            <div class="list-more">
	                <a href="javascript:;" major_id=<?php echo ($vo["id"]); ?>>点击查看更多</a>
	            </div>
	        </div><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div class="footer">
    <ul>
        <li><a href="">登录/注册</a></li>
        <li><a href="">用户反馈</a></li>
        <li><a href="">回到顶部</a></li>
    </ul>
    <a href="" class="logo">
        <img src="/Template/mobile/new/Static/images/logo.png" />
    </a>
    <div>
        <p>Copyright© 2013-2016 All Rights Reserved</p>
        <p>硕学教育培训学校</p>
    </div>
</div>

    <!--build:js js/layout.min.js -->
    <script src="/Template/mobile/new/Static/js/layout.js"></script>
    <!-- endbuild -->
    <!--build:js js/json2.min.js -->
    <!--<script src="/Template/mobile/new/Static/js/filter.js"></script>-->
    <script src="/Template/mobile/new/Static/js/json2.js"></script>
    <!-- endbuild -->
    <!--build:js js/major.min.js -->
    <script src="/Template/mobile/new/Static/js/major.js"></script>
    <!-- endbuild -->
</body>
</html>